<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>菜鸟教程(runoob.com)</title>
    <style>
        /* 本例演示如何使用简写属性将字体属性设置在一个声明之内。 */
        p.ex1 {
            font: 15px arial, sans-serif;
        }

        /* font 简写属性在一个声明中设置所有字体属性。 */
        /* 可设置的属性是（按顺序）： "font-style font-variant font-weight font-size/line-height font-family" */
        p.ex2 {
            font: italic bold 12px/30px Georgia, serif;
        }
    </style>
</head>

<body>
    <p class="ex1">This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a
        paragraph. This is a paragraph. This is a paragraph. This is a paragraph.</p>
    <p class="ex2">This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a
        paragraph. This is a paragraph. This is a paragraph. This is a paragraph.</p>
</body>

</html>